
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guanbi2fill"></use>
                    </svg>
                    <div class="name">关闭2-fill</div>
                    <div class="fontclass">#icon-guanbi2fill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guanbi"></use>
                    </svg>
                    <div class="name">关闭</div>
                    <div class="fontclass">#icon-guanbi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jincheng"></use>
                    </svg>
                    <div class="name">进程</div>
                    <div class="fontclass">#icon-jincheng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhiku"></use>
                    </svg>
                    <div class="name">智库</div>
                    <div class="fontclass">#icon-zhiku</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jincheng-gaoliang"></use>
                    </svg>
                    <div class="name">进程-高亮</div>
                    <div class="fontclass">#icon-jincheng-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wode-gaoliang"></use>
                    </svg>
                    <div class="name">我的-高亮</div>
                    <div class="fontclass">#icon-wode-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wode"></use>
                    </svg>
                    <div class="name">我的</div>
                    <div class="fontclass">#icon-wode</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhiku-gaoliang"></use>
                    </svg>
                    <div class="name">智库-高亮</div>
                    <div class="fontclass">#icon-zhiku-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yunwei-gaoliang"></use>
                    </svg>
                    <div class="name">运维-高亮</div>
                    <div class="fontclass">#icon-yunwei-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yunwei"></use>
                    </svg>
                    <div class="name">运维</div>
                    <div class="fontclass">#icon-yunwei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tianjia"></use>
                    </svg>
                    <div class="name">添加</div>
                    <div class="fontclass">#icon-tianjia</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-changyong"></use>
                    </svg>
                    <div class="name">左侧-常用</div>
                    <div class="fontclass">#icon-zuoce-changyong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-changyong-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-常用-高亮</div>
                    <div class="fontclass">#icon-zuoce-changyong-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-qujian"></use>
                    </svg>
                    <div class="name">左侧-区间</div>
                    <div class="fontclass">#icon-zuoce-qujian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-guidao"></use>
                    </svg>
                    <div class="name">左侧-轨道</div>
                    <div class="fontclass">#icon-zuoce-guidao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tianjiachangyongzhibiao"></use>
                    </svg>
                    <div class="name">添加常用指标</div>
                    <div class="fontclass">#icon-tianjiachangyongzhibiao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-chezhan"></use>
                    </svg>
                    <div class="name">左侧-车站</div>
                    <div class="fontclass">#icon-zuoce-chezhan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-guidao-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-轨道-高亮</div>
                    <div class="fontclass">#icon-zuoce-guidao-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-chezhan-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-车站-高亮</div>
                    <div class="fontclass">#icon-zuoce-chezhan-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shezhi"></use>
                    </svg>
                    <div class="name">设置</div>
                    <div class="fontclass">#icon-shezhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-qujian-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-区间-高亮</div>
                    <div class="fontclass">#icon-zuoce-qujian-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-tongxun-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-通讯-高亮</div>
                    <div class="fontclass">#icon-zuoce-tongxun-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-tongxun"></use>
                    </svg>
                    <div class="name">左侧-通讯</div>
                    <div class="fontclass">#icon-zuoce-tongxun</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gou"></use>
                    </svg>
                    <div class="name">勾</div>
                    <div class="fontclass">#icon-gou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bianji"></use>
                    </svg>
                    <div class="name">编辑</div>
                    <div class="fontclass">#icon-bianji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-weishoucang"></use>
                    </svg>
                    <div class="name">未收藏</div>
                    <div class="fontclass">#icon-weishoucang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tianjia-"></use>
                    </svg>
                    <div class="name">添加-2</div>
                    <div class="fontclass">#icon-tianjia-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shoucang"></use>
                    </svg>
                    <div class="name">收藏</div>
                    <div class="fontclass">#icon-shoucang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shijian"></use>
                    </svg>
                    <div class="name">时间</div>
                    <div class="fontclass">#icon-shijian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhanbi"></use>
                    </svg>
                    <div class="name">占比</div>
                    <div class="fontclass">#icon-zhanbi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guanbi-shanchu"></use>
                    </svg>
                    <div class="name">关闭-删除</div>
                    <div class="fontclass">#icon-guanbi-shanchu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-caidan-shixin"></use>
                    </svg>
                    <div class="name">菜单-实心</div>
                    <div class="fontclass">#icon-caidan-shixin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fanhui"></use>
                    </svg>
                    <div class="name">返回</div>
                    <div class="fontclass">#icon-fanhui</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuandao"></use>
                    </svg>
                    <div class="name">转到</div>
                    <div class="fontclass">#icon-zhuandao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-sousuo"></use>
                    </svg>
                    <div class="name">搜索</div>
                    <div class="fontclass">#icon-sousuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-anfangmenjin"></use>
                    </svg>
                    <div class="name">左侧-安防门禁</div>
                    <div class="fontclass">#icon-zuoce-anfangmenjin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-anfangmenjin-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-安防门禁-高亮</div>
                    <div class="fontclass">#icon-zuoce-anfangmenjin-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-gongdian"></use>
                    </svg>
                    <div class="name">左侧-供电</div>
                    <div class="fontclass">#icon-zuoce-gongdian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-gongdian-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-供电-高亮</div>
                    <div class="fontclass">#icon-zuoce-gongdian-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-xinhao"></use>
                    </svg>
                    <div class="name">左侧-信号</div>
                    <div class="fontclass">#icon-zuoce-xinhao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-xinhao-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-信号-高亮</div>
                    <div class="fontclass">#icon-zuoce-xinhao-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-zonghejiankong-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-综合监控-高亮</div>
                    <div class="fontclass">#icon-zuoce-zonghejiankong-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-zonghejiankong"></use>
                    </svg>
                    <div class="name">左侧-防灾报警环境与设备监控</div>
                    <div class="fontclass">#icon-zuoce-zonghejiankong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-zonghejiankong1"></use>
                    </svg>
                    <div class="name">左侧-综合监控</div>
                    <div class="fontclass">#icon-zuoce-zonghejiankong1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-zonghejiankong-gaoliang1"></use>
                    </svg>
                    <div class="name">左侧-综合监控-高亮</div>
                    <div class="fontclass">#icon-zuoce-zonghejiankong-gaoliang1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-tongfengkongtiaoyucainuan"></use>
                    </svg>
                    <div class="name">左侧-通风空调与采暖</div>
                    <div class="fontclass">#icon-zuoce-tongfengkongtiaoyucainuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-tongfengkongtiaoyucainuan-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-通风空调与采暖-高亮</div>
                    <div class="fontclass">#icon-zuoce-tongfengkongtiaoyucainuan-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-geipaishuiyuxiaofang"></use>
                    </svg>
                    <div class="name">左侧-给排水与消防</div>
                    <div class="fontclass">#icon-zuoce-geipaishuiyuxiaofang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-geipaishuiyuxiaofang-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-给排水与消防-高亮</div>
                    <div class="fontclass">#icon-zuoce-geipaishuiyuxiaofang-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-zidongshoujianpiao"></use>
                    </svg>
                    <div class="name">左侧-自动售检票</div>
                    <div class="fontclass">#icon-zuoce-zidongshoujianpiao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-zidongshoujianpiao-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-自动售检票-高亮</div>
                    <div class="fontclass">#icon-zuoce-zidongshoujianpiao-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-chezhanfushusheshi"></use>
                    </svg>
                    <div class="name">左侧-车站附属设施</div>
                    <div class="fontclass">#icon-zuoce-chezhanfushusheshi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-chezhanfushusheshi-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-车站附属设施-高亮</div>
                    <div class="fontclass">#icon-zuoce-chezhanfushusheshi-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-yunyingkongzhizhongxin"></use>
                    </svg>
                    <div class="name">左侧-运营控制中心</div>
                    <div class="fontclass">#icon-zuoce-yunyingkongzhizhongxin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-yunyingkongzhizhongxin-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-运营控制中心-高亮</div>
                    <div class="fontclass">#icon-zuoce-yunyingkongzhizhongxin-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-renfang"></use>
                    </svg>
                    <div class="name">左侧-人防</div>
                    <div class="fontclass">#icon-zuoce-renfang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-renfang-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-人防-高亮</div>
                    <div class="fontclass">#icon-zuoce-renfang-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-cheliangduanyuzonghejidi-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-车辆段与综合基地-高亮</div>
                    <div class="fontclass">#icon-zuoce-cheliangduanyuzonghejidi-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-cheliangduanyuzonghejidi"></use>
                    </svg>
                    <div class="name">左侧-车辆段与综合基地</div>
                    <div class="fontclass">#icon-zuoce-cheliangduanyuzonghejidi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-zhuanxiangfeiyong-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-专项费用-高亮</div>
                    <div class="fontclass">#icon-zuoce-zhuanxiangfeiyong-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-zhuanxiangfeiyong"></use>
                    </svg>
                    <div class="name">左侧-专项费用</div>
                    <div class="fontclass">#icon-zuoce-zhuanxiangfeiyong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-morenzhuanye"></use>
                    </svg>
                    <div class="name">左侧-默认专业</div>
                    <div class="fontclass">#icon-zuoce-morenzhuanye</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-morenzhuanye-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-默认专业-高亮</div>
                    <div class="fontclass">#icon-zuoce-morenzhuanye-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-jiansheyongdifei-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-建设用地费-高亮</div>
                    <div class="fontclass">#icon-zuoce-jiansheyongdifei-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-jiansheyongdifei"></use>
                    </svg>
                    <div class="name">左侧-建设用地费</div>
                    <div class="fontclass">#icon-zuoce-jiansheyongdifei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-qitafeiyong-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-其他费用-高亮</div>
                    <div class="fontclass">#icon-zuoce-qitafeiyong-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-qitafeiyong"></use>
                    </svg>
                    <div class="name">左侧-其他费用</div>
                    <div class="fontclass">#icon-zuoce-qitafeiyong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-paichusuo-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-派出所-高亮</div>
                    <div class="fontclass">#icon-zuoce-paichusuo-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-paichusuo"></use>
                    </svg>
                    <div class="name">左侧-派出所</div>
                    <div class="fontclass">#icon-zuoce-paichusuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-jiaotongxianjiezhuanye"></use>
                    </svg>
                    <div class="name">左侧-交通衔接专业</div>
                    <div class="fontclass">#icon-zuoce-jiaotongxianjiezhuanye</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-jiaotongxianjiezhuanye-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-交通衔接专业-高亮</div>
                    <div class="fontclass">#icon-zuoce-jiaotongxianjiezhuanye-gaoliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-yubeifeiyong"></use>
                    </svg>
                    <div class="name">左侧-预备费用</div>
                    <div class="fontclass">#icon-zuoce-yubeifeiyong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuoce-yubeifeiyong-gaoliang"></use>
                    </svg>
                    <div class="name">左侧-预备费用-高亮</div>
                    <div class="fontclass">#icon-zuoce-yubeifeiyong-gaoliang</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
